<nav id="navbar-static-side" class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <runner-list class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element"> 
                    <span>
                        <a ui-sref="dashboard.race.index">
                            <img style="width: 80px;height: 80px;" alt="image" class="img-circle" ng-src="{{raceinfo.race_logo}}" image-404="images/logo_rz.png">
                        </a>
                    </span>
                    <span class="clear"> 
                        <span class="block m-t-xs"> <strong style="color: white;" class="font-bold">{{raceinfo.disp_name}}</strong></span> 
                    </span> 
                </div>
            </li>
            <runner>
                <a ui-sref="dashboard.race.index">
                    <i class="fa fa-th-large"></i>
                    <span class="nav-label">赛事主页</span>
                </a>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-trophy"></i>
                    <span class="nav-label">赛事信息</span>
                    <span class="fa arrow"></span>
                </a>

                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.basic" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            基本设置
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.detail" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            打卡点设置
                        </a>
                    </li>
                    <li ng-repeat="item in courseListForNav" ui-sref="dashboard.race.courseedit({course_id: item.course_id})" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            {{item.course_name}}
                        </a>
                    </li>

                    <li ui-sref="dashboard.race.course" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            <i class="fa fa-plus-square"> 新增科目</i>
                        </a>
                    </li>

                </ul>
            </runner>
            <runner ng-show="raceinfo.register == 'yes'">
            <!-- <runner ng-show="false"> -->
                <a>
                    <i class="fa fa-edit"></i>
                    <span class="nav-label">报名管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.entryregisterlist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            报名选手列表
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.entrysetting" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            报名设置
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.entrydatasetting" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            自定义报名信息
                        </a>
                    </li>
                    <!-- <li ng-show="raceinfo.picknum == 'yes'" ui-sref="dashboard.race.entrybiblist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            选手号列表
                        </a>
                    </li> -->
                </ul>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-child"></i>
                    <span class="nav-label">参赛管理</span>
                    <span class="fa arrow"></span>
                </a>

                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.runnerlist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            参赛选手信息
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.teamlist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            团队列表
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.groupaliaslist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            分组别名
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.grouplist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            小组列表
                        </a>
                    </li>
                </ul>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-truck"></i>
                    <span class="nav-label">物料管理</span>
                    <span class="fa arrow"></span>
                </a>

                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.chiplist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            计时芯片
                        </a>
                    </li>
                </ul>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-bars"></i>
                    <span class="nav-label">成绩管理</span>
                    <span class="fa arrow"></span>
                </a>

                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.rawdatalist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            原始数据管理
                        </a>
                    </li>
                    <!-- <li ui-sref="dashboard.race.realtimelist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            实时成绩查询
                        </a>
                    </li> -->
                    <li ui-sref="dashboard.race.realtimelistpersonal" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            个人实时成绩查询
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.realtimelistteam" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            团队实时成绩查询
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.scorelist" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            参赛选手成绩
                        </a>
                    </li>
                </ul>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-child"></i>
                    <span class="nav-label">选手服务</span>
                    <span class="fa arrow"></span>
                </a>

                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ng-show="raceinfo.sms == 'yes'" ui-sref="dashboard.race.sms" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            发送选手短信
                        </a>
                    </li>
                    <li ng-show="raceinfo.cert_download == 'yes'" ui-sref="dashboard.race.certificate" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            电子证书制作
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.servicepublish" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            服务发布
                        </a>
                    </li>
                </ul>
            </runner>
            <runner>
                <a>
                    <i class="fa fa-wrench"></i>
                    <span class="nav-label">它项功能</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse" aria-expanded="true">
                    <li ui-sref="dashboard.race.rescue" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            赛事救援
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.livevideo" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            视频直播
                        </a>
                    </li>
                    <li ui-sref="dashboard.race.guntime" ui-sref-active="active" ng-click="stopPropagation($event)">
                        <a>
                            修改发令时间
                        </a>
                    </li>
                    <li ng-click="stopPropagation($event)">
                        <a href="download.html" target="_black">
                            软件下载
                        </a>
                    </li>
                </ul>
            </runner>
        </runner-list>
    </div>
</nav>